package com.learn.common.enums;

import lombok.Getter;

/**
 * Created by zhaohongwei1@itcast.cn
 */
@Getter
public enum ExceptionEnum {

    INVALID_VERIFY_CODE(400, "验证码错误！"),
    INVALID_DATETIME(400, "无效日期时间格式！"),
    UNAUTHORIZED(401, "登录失效或未登录！");



    private int status;
    private String message;

    ExceptionEnum(int status, String message) {
        this.status = status;
        this.message = message;
    }
}
